import Vue from 'vue'
import VueRouter from 'vue-router'
import Lun from '../components/Lun.vue'
import Gong from '../components/Gong.vue'
import My from '../components/My.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    redirect: 'lun'
}, {
    path: '/lun',
    name: 'Lun',
    component: Lun
}, {
    path: '/gong',
    name: 'Gong',
    component: Gong
}, {
    path: '/my',
    name: 'My',
    component: My
}]

const router = new VueRouter({
    routes
})

export default router